package com.bicon.life.core.base.common.persistence;

import com.bicon.life.core.domain.entity.RepositoryEntity;

import java.util.List;

/**
 * @author SX
 * Created by SX on 2016/12/2.
 */
public class Node<T extends Node> extends RepositoryEntity<Node> {

    private String parentId;

    private List<T> children;

    public List<T> getChildren() {
        return children;
    }

    public void setChildren(List<T> children) {
        this.children = children;
    }

    public String getParentId() {
        return parentId;
    }

    public void setParentId(String parentId) {
        this.parentId = parentId;
    }
}
